import { axios } from '../../utils/request'

const api = {
    lsit: '/erp/voucherDesign/voucherDynamicPage',//搜索某个表单的动态分页列表数据
    getIds: '/erp/voucherDesign/pageIds',//获取某个表单的ids
    byid:'/erp/voucherDesign/voucherDynamicById',//通过ID获取某个单据的数据
    // 新增下达地址
    xdbyid:'/production/plan/released'
}

/**
 * 某个表单的动态分页列表数据
 */
export function list(data) {
    return axios({
        url: api.lsit,
        method: "post",
        data: data
    })
}

/**
 * 获取某个表单的ids
 */
export function getids(data) {
    return axios({
        url: api.getIds,
        method: "get",
        params: data
    })
}

/**
 * 通过ID获取某个单据的数据
 */
export function getbyid(data) {
    return axios({
        url: api.byid,
        method: "get",
        params: data
    })
}
/**
 * 下达---liulang
 */
 export function released(data) {
    return axios({
        url: api.xdbyid,
        method: "get",
        params: data
    })
}